package com.dangdang.service;

import com.dangdang.serviceImpl.BookServiceImpl;
import com.dangdang.serviceImpl.CategoryServiceImpl;
import com.dangdang.serviceImpl.ItemServiceImpl;
import com.dangdang.serviceImpl.OrderServiceImpl;
import com.dangdang.serviceImpl.ProductServiceImpl;
import com.dangdang.serviceImpl.ReceiveAddressServiceImpl;
import com.dangdang.serviceImpl.UserServiceImpl;

/**
 * 管理类创建工厂.创建管理类
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-1-18
 */
public class ServiceFactory {

	/**
	 * 获得图书管理类
	 * 
	 * @return
	 */
	public static BookService getBookService() {
		BookService bookServiceimpl = new BookServiceImpl();
		return bookServiceimpl;
	}

	/**
	 * 获得订单详细条目管理类
	 * 
	 * @return
	 */
	public static ItemService getItemService() {
		ItemService itemServiceimpl = new ItemServiceImpl();
		return itemServiceimpl;
	}

	/**
	 * 获得订单管理类
	 * 
	 * @return
	 */
	public static OrderService getOrderService() {
		OrderService orderServiceimpl = new OrderServiceImpl();
		return orderServiceimpl;
	}

	/**
	 * 获得商品类别关联类
	 * 
	 * @return
	 */
	public static ProductCategoryService getProductCategoryService() {
		// TODO
		return null;
	}

	/**
	 *获得商品管理类
	 * 
	 * @return
	 */
	public static ProductService getProductService() {
		ProductService productServiceimpl = new ProductServiceImpl();
		return productServiceimpl;
	}

	/**
	 * 获得收货人地址管理类
	 * 
	 * @return
	 */
	public static ReceiveAddressService getReceiveAddressService() {
		ReceiveAddressService receiveAddressServiceimpl = new ReceiveAddressServiceImpl();
		return receiveAddressServiceimpl;
	}

	/**
	 *获得用户管理类
	 * 
	 * @return
	 */
	public static UserService getUserService() {
		UserService userServiceimpl = new UserServiceImpl();
		return userServiceimpl;
	}

	/**
	 *获得类别管理类
	 * 
	 * @return
	 */
	public static CategoryService getCategoryService() {
		CategoryService categoryServiceimpl = new CategoryServiceImpl();
		return categoryServiceimpl;
	}

}
